﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Pages_CallCategoryMain" Codebehind="CallCategoryMain.aspx.cs" MasterPageFile="~/Pages/Master/MainAdmin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <fieldset id="pageLoad">
        <div id="fillInData">
            <h1>Categoria de Chamado</h1>
        
        <asp:GridView ID="gdvCallCategory" runat="server" AutoGenerateColumns="False" 
            DataSourceID="odsCallCategory" DataKeyNames="Id" 
            onrowcommand="gdvCallCategory_RowCommand" CellPadding="4" 
                Font-Size="Medium" ForeColor="#333333" GridLines="None" AllowPaging="True" 
                Font-Names="Courier New" Font-Overline="False" Font-Strikeout="False" 
                Width="100%">
            <AlternatingRowStyle BackColor="White" HorizontalAlign="Left" />
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="ID" SortExpression="Id" 
                    Visible="False" />
                <asp:BoundField DataField="Description" HeaderText="Descrição" 
                    SortExpression="Description" >
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle Width="30%" />
                </asp:BoundField>
                <asp:BoundField DataField="MinTimeAnalize" 
                    HeaderText="Tempo Mín de Análise" SortExpression="MinimumTimeAnalize" >
                <ItemStyle Width="15%" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="MaxTimeAnalize" 
                    HeaderText="Tempo Máx de Análise" SortExpression="MaximumTimeAnalize" >
                <ItemStyle Width="15%" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="MinTimeTreatment" 
                    HeaderText="Tempo Mín de Atendimento" 
                    SortExpression="MinimumTimeTreatment" >
                <ItemStyle HorizontalAlign="Center" Width="15%" />
                </asp:BoundField>
                <asp:BoundField DataField="MaxTimeTreatment" 
                    HeaderText="Tempo Máx de Atendimento" 
                    SortExpression="MaximumTimeTreatment" >

                    <ItemStyle HorizontalAlign="Center" Width="15%" />
                </asp:BoundField>

                <asp:TemplateField> 
                    <ItemTemplate>
                        <asp:LinkButton runat= "server"  ID="lbUpdate" CommandArgument='<%# Bind("ID") %>' CommandName="Update" > <img src="../../Images/Icon/EDITFILE_24x24.png" alt="Editar" /> </asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="5%" />
                </asp:TemplateField>

                    <asp:TemplateField> 
                    <ItemTemplate>
                        <asp:LinkButton runat= "server"  ID="lbDelete" CommandArgument='<%# Bind("ID") %>' CommandName="Exclude" OnClientClick='javascript:return confirm("Confirma a exclusão deste estado ?")' ><img src="../../Images/Icon/EXCLUDEFILE_24x24.png" alt="Excluir" /></asp:LinkButton>
                    </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                </asp:TemplateField>

            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <asp:ObjectDataSource ID="odsCallCategory" runat="server" 
            SelectMethod="GetCallCategories" 
            TypeName="br.com.SistemaChamados.Controller.CallCategoryController">
        </asp:ObjectDataSource>
        </div>
        </fieldset>
</asp:Content>